package com.qiaofang.entity;

import com.qiaofang.common.model.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.LastModifiedBy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 渠道合作关系表
 **/
@Data
@Entity
@Table(name = "tr_company_relation")
public class CompanyRelation extends BaseDomain {

    @ApiModelProperty("开发商")
    @Column(name = "dev_company")
    private Long devCompany;

    @ApiModelProperty("代理公司")
    @Column(name = "agent_company")
    private Long agentCompany;

    @ApiModelProperty("合作关系 0:无效、1:有效")
    @Column(name = "relation_status")
    private String relationStatus;

    @ApiModelProperty("是否删除 0:否、1: 是")
    @Column(name = "del_flag")
    private String delFlag;

    @CreatedBy
    @ApiModelProperty("创建人")
    @Column(name = "create_user_id")
    private Long createUserId;

    @LastModifiedBy
    @ApiModelProperty("修改人")
    @Column(name = "update_user_id")
    private Long updateUserId;

}
